package com.ktg.mes.wm.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ktg.mes.md.domain.MdItem;
import com.ktg.mes.util.LeftJoin;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;


/**
 * 物料拆分对象 wm_item_split_line
 *
 * @author byteco
 * @date 2023-01-06
 */

@Data
@Accessors(chain = true)
@TableName("wm_item_split")
public class WmItemSplit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行ID */
    @TableId(value = "line_id", type = IdType.AUTO)
    private Long lineId;


    /** 来源的入库记录ID */
    @Excel(name = "来源的入库记录ID")
    private Long fromItemRecptLineId;

    /** 产品物料ID */
    @Excel(name = "产品物料ID")
    @LeftJoin(leftTable = "md_item",leftTableColumn = "item_id",selectColumn = MdItem.mainSelectColumnNotId)
    private Long itemId;


    /** 仓库ID */
    @Excel(name = "仓库ID")
    @LeftJoin(leftTable = "wm_warehouse",leftTableColumn = "warehouse_id",selectColumn = WmWarehouse.mainColumnNotId)
    private Long warehouseId;



    /** 出库数量 */
    @Excel(name = "数量")
    private BigDecimal quantity;


    /** 入库批次号 */
    @Excel(name = "入库批次号")
    private String batchCode;


    /** 物料码 */
    @Excel(name = "物料码")
    private String meterialCode;


    /** 是否执行入库:0未入库 1已入库 */
    @Excel(name = "是否执行入库:0未入库 1已入库")
    private String isInStock;







}
